package Test11_16;

import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Member;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class Test04 {
    public static void main(String[] args) {

//        List<Member> list1 = new ArrayList<>();
//        Calendar calendar = Calendar.getInstance();
//        SimpleDateFormat formater = new SimpleDateFormat("yyyy- MM-dd HH:mm:ss");
//        String now = formater.format(calendar.getTime());
//        list1.add(new Member("1111","张三","2222",200,"2341",now));
//        list1.add(new Member("2222","李四","3333",500,"2131",now));
//        try {
//            ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream("D:\\aaa\\chapter04.txt"));
//            objectOutputStream.writeObject(list1);
//            objectOutputStream.close();
//        }catch (Exception e){
//            e.printStackTrace();
//        }
    }
}
